package com.skivingcloud.admin.sys.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.JsonNode;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 表单设计表
 * </p>
 *
 * @author skivingcloud
 * @since 2022-06-30
 */
@TableName(value = "sys_form_designer", autoResultMap = true)
@ApiModel(value = "SysFormDesigner对象", description = "表单设计表")
public class SysFormDesigner implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    private String id;

    @ApiModelProperty("版本")
    private Integer version;

    @ApiModelProperty("编号")
    private String formCode;

    @ApiModelProperty("名称")
    private String formName;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("表单设计数据")
    @JsonProperty
    @TableField(value = "form_des_json" ,typeHandler = JacksonTypeHandler.class)
    private JsonNode formDesJson;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }
    public String getFormCode() {
        return formCode;
    }

    public void setFormCode(String formCode) {
        this.formCode = formCode;
    }
    public String getFormName() {
        return formName;
    }

    public void setFormName(String formName) {
        this.formName = formName;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public JsonNode getFormDesJson() {
        return formDesJson;
    }

    public void setFormDesJson(JsonNode formDesJson) {
        this.formDesJson = formDesJson;
    }

    @Override
    public String toString() {
        return "SysFormDesigner{" +
            "id=" + id +
            ", version=" + version +
            ", formCode=" + formCode +
            ", formName=" + formName +
            ", remark=" + remark +
            ", formDesJson=" + formDesJson +
        "}";
    }
}
